package com.ruoyi.system.domain.aggregation;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分对象 point
 * 
 * @author ruoyi
 * @date 2025-01-01
 */
public class Point extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 奖励id */
    @Excel(name = "奖励id")
    private Long rewardId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户类型：1、c端用户2、业务员3、商家4、区域代理5、总公司 */
    @Excel(name = "用户类型", readConverterExp = "1=c端用户,2=业务员,3=商家,4=区域代理,5=总公司")
    private Integer type;

    /** 积分 */
    @Excel(name = "积分")
    private BigDecimal point;

    /** 1、增2、减 */
    @Excel(name = "操作类型", readConverterExp = "1=增,2=减")
    private String increase;

    /** 1、穿山甲2、taku */
    @Excel(name = "平台", readConverterExp = "1=穿山甲,2=taku")
    private String platform;

    /** 删除标志，0未删除，1删除 */
    private Integer deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setRewardId(Long rewardId) 
    {
        this.rewardId = rewardId;
    }

    public Long getRewardId() 
    {
        return rewardId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setPoint(BigDecimal point) 
    {
        this.point = point;
    }

    public BigDecimal getPoint() 
    {
        return point;
    }

    public void setIncrease(String increase) 
    {
        this.increase = increase;
    }

    public String getIncrease() 
    {
        return increase;
    }

    public void setPlatform(String platform) 
    {
        this.platform = platform;
    }

    public String getPlatform() 
    {
        return platform;
    }

    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("rewardId", getRewardId())
            .append("userId", getUserId())
            .append("type", getType())
            .append("point", getPoint())
            .append("increase", getIncrease())
            .append("platform", getPlatform())
            .append("deleted", getDeleted())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}

